import axios from 'axios';
/* 核心开发者 */
export const watchUsers = ref([]);

export const watchQuery = ref({
  page: 1,
  per_page: 20,
});
export const getWatchUsers = async () => {
  const http = axios.create();
  const { data } = await http.get(`https://gitee.com/api/v5/repos/in-git/ax/subscribers`, {
    params: watchQuery.value,
  });
  watchUsers.value = data;
  return data;
};
